import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Content } from './entities/content.entity';
import { Attachment } from './entities/attachment.entity';
import { ContentsController } from './contents.controller';
import { ContentsService } from './contents.service';
import { TagsModule } from '../tags/tags.module';
import { AttachmentsModule } from '../attachments/attachments.module';

@Module({
  imports: [TypeOrmModule.forFeature([Content, Attachment]), TagsModule, AttachmentsModule],
  controllers: [ContentsController],
  providers: [ContentsService],
  exports: [TypeOrmModule, ContentsService],
})
export class ContentsModule {}
